%% @author author <author@example.com>
%% @copyright YYYY author.
%% @doc Example webmachine_resource.

-module(flowlang_resource).
-export([init/1, to_html/2]).
-include_lib("webmachine/include/webmachine.hrl").

init([]) -> {ok, undefined}.

% func(ReqData, State) -> { Response, ReqData, State }.

to_html(ReqData, State) ->
	Path = wrq:raw_path(ReqData),
    HBody = io_lib:format("<html><body>~s</body></html>~n", [Path]),
    {HBody, ReqData, State}.

